import React, { Component } from 'react'
import Child from './Child'

export default class App extends Component {
  state = {
    salary: 11.46,
  }
  render() {
    return (
      <div>
        App
        <hr />
        {/* #1 父组件通过自定义属性进行传递 */}
        <Child salary={this.state.salary} age='18' />
      </div>
    )
  }
}
